let arr = [1, 2, 3, 4, 5]

arr.sort(()=> Math.random() - 0.5)

console.log(arr)


let newArr = arr.map(item =>({item:item, ram:Math.random()}))
newArr.sort((a,b) => a.ram - b.ram)
arr.slice(0,arr.length,...newArr.map(item => item.item))
